package admin

import database "hft/Database"

type ArticleType struct {
	database.Base
	Name         string         `json:"name,omitempty"`
	AccountId    uint           `json:"accountId,omitempty"`
	ArticleBases []*ArticleBase `json:"articleBases,omitempty" gorm:"foreignKey:ArtType;references:ID;constraint:OnDelete:CASCADE,OnUpdate:NO ACTION"`
}

func (ArticleType) TableName() string {
	return database.TableNameFormat("article_type")
}
